<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p>
    取值：
    <br>
    var text =$("p01").text();
    <br>
    赋值：
    <br>
    text()=document.getElementById("").innerText;
    <br>
    $("#p02").html($("#p01").html())
</p>
<input id="inputT" type="text">
<input id="input2" type="text">
<hr>
<button id="butText">text</button>
<button id="butHtml">html</button>
<button id="butVal">val</button>
<button id="copy">copt</button>
<hr>
<textarea id="show">

</textarea>
<script type="text/javascript" src="js/jquery-3.5.1.js"></script>
<script>
    $(function () {
        $("#butText").click(function () {
            $("#show").text($("inputT").text())
        })

        $("#copy").click(function () {

        })
    })


</script>
</body>
</html>